# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test05
# Description:  各进制的转换
# Author:       ASUS
# Date:         2019/1/17
#-------------------------------------------------------------------------------


# 转换成十进制
print(int("10110",2))
print(int("0xF35AE",16))
print(int("76532",8))
# 转换成二进制
print(bin(12))
print(bin(0xF012E))
# 转换成八进制
print(oct(1234))
# 转换成十六进制
print(hex(0b1101101))
print(hex(54321))

